-- Leviathan (c) v.v.balashoff
local Color = require('libs/colorlibrary/colorlibrary')
local Class = require('leviathan/Class')

local CircleComponent = Class:derive('CircleComponent')

function CircleComponent:new(mode, x, y, r, color)
    self.id = 'CircleComponent'
    self.typeId = 'Renderable'
    self.drawable = true
    self.enabled = true

    self.mode = mode or 'fill'
    self.x = x or 0
    self.y = y or 0
    self.r = r or 1
    self.color = color or Color.black
    -- rounding values
    self.x = math.floor(self.x)
    self.y = math.floor(self.y)
    self.r = math.floor(self.r)
end

return CircleComponent
